﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;

namespace BUS
{
    public partial class MonAn_BUS
    {
        MonAn_DAO monan_dao;
        public bool ThemMonAn(MonAn monan_dto)
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.ThemMonAn(monan_dto);
        }

        public bool ThemMonAn_NVL(MonAn_NVL MonAnNVL_dto)
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.ThemMonAn_NVL(MonAnNVL_dto);
        }
        public string MaNVLTang()
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.MaMonTang();
        }
        public DataTable DanhSachMonAn()
        {
            monan_dao = new MonAn_DAO();
            return  monan_dao.DanhSachMonAn();
        }

        public DataTable DanhSachMonAn_Ma(string ma)
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.DanhSachMon_Ma(ma);
        }

        public bool XoaMon(string MaMon)
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.XoaMon(MaMon);
        }

        public bool SuaMonAn(MonAn monan_dto)
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.SuaMonAn(monan_dto);
        }

        public bool XoaMonAn_NVL(string MaNVL)
        {
            monan_dao = new MonAn_DAO();
            return monan_dao.XoaMonAn_NVL(MaNVL);
        }
           
    }
}
